package String;

public class Text {

	public static void main(String[] args) {
		// 获取字符串信息
		String str= "We are students";
		int size = str.lastIndexOf("");
		System.out.println("空字符串索引位置是: "+size);
		System.out.println("字符串长度为: "+str.length());
		

	}

}
